{extend name="$_tpl_public_layout_danceadmin"/}


{block name="breadcrumb"}
<ol class="breadcrumb">
	<li class="breadcrumb-item"><a href="{:url('admin/index/index')}">{:config('system.site_title')}</a></li>
	<li class="breadcrumb-item"><a href="{:url('admin/merchantRole/index')}">{$sideName}</a></li>
</ol>
{/block}


{block name="pageheader"}
{$sideName}
{/block}


{block name="content"}
<div class="card mb-3">
	<div class="card-body">
		<form method="post" action="{:url('admin/merchantRole/doAdd')}" class="form-horizontal J_ajaxForm">
			<input type="hidden" name="id" value="{$id}" />
			<div class="form-group row">
				<label class="col-md-2 control-label">名称</label>
				<div class="col-md-5">
					<input type="text" class="form-control" name="data[name]" value="{$info['name']}" />
				</div>
				<div class="col-md-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-md-2 control-label">描述</label>
				<div class="col-md-5">
					<textarea name="data[description]" class="form-control" rows="5">{$info['description']}</textarea>
				</div>
				<div class="col-md-5"></div>
			</div>
			<div class="form-group row">
				<label class="col-md-2 control-label">排序</label>
				<div class="col-md-5">
					<input type="text" name="data[vieworder]" value="{$info['vieworder']}" class="form-control" />
				</div>
				<div class="col-md-5"></div>
			</div>
			<div class="clearfix form-actions">
				<div class="offset-md-2 col-sm-10">
					<button type="submit" class="btn btn-primary btn-sm J_ajaxSubmit">确定</button>
				</div>
			</div>
		</form>
	</div>
</div>
{/block}


{block name="script"}
<script type="text/javascript">

</script>
{/block}